<div class="bjui-pageContent">
    <form action="{:U('Admin/Member/updMember')}" data-toggle="validate" data-alertmsg="false">
        <input type="hidden" name="userId" value="{$userInfo.id}">
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
                <tr>
                    <td>
                        <label for="phone" class="control-label x85">手机号：</label>
                        <input type="text" name="phone" id="phone" value="{$userInfo.phone}" data-rule="mobile" size="20" />
                        <span>(*用于登陆)</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="password" class="control-label x85">密码：</label>
                        <input type="password" name="password" id="password" value="" size="20" />
                        <span>(*如果留空表示不修改密码)</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="name" class="control-label x85">姓名：</label>
                        <input type="text" name="name" id="name" value="{$userInfo.name}" data-rule="required" size="20" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="remark" class="control-label x85">备注说明：</label>
                        <input type="text" name="remark" id="remark" value="{$userInfo.remark}" size="20" />
                        <span>(可为空)</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="name" class="control-label x85">账号级别：</label>
                        <notempty name="userGroup">
                            <select name="group_id" data-toggle="selectpicker" data-width="200">
                                <foreach name="userGroup" item="vo" key="k">
                                    <option value="{$vo.id}" <if condition="$userInfo['group_id'] eq $vo['id']">selected='selected'</if>>{$vo.name}</option>
                                </foreach>
                            </select>
                        </notempty>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="status" class="control-label x85">用户状态：</label>
                        <notempty name="commonStatus">
                            <foreach name="commonStatus" item="vo" key="k">
                                <input type="radio" name="status" data-toggle="icheck" value="{$k}" data-label="{$vo}" <if condition="$k eq $userInfo['status']">checked="checked"</if>>
                                &nbsp;&nbsp;
                            </foreach>
                        </notempty>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">更新</button></li>
    </ul>
</div>